home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000084_icon-group-sender _Tue Apr 19 10:06:42 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  793b

  1. Received: by cheltenham.cs.arizona.edu; Tue, 19 Apr 1994 12:28:32 MST
  2. Date: Tue, 19 Apr 1994 10:06:42 MST
  3. From: "Ralph Griswold" <ralph>
  4. Message-Id: <199404191706.AA11050@cheltenham.cs.arizona.edu>
  5. To: rjhare@festival.ed.ac.uk
  6. Subject: Re:  random numbers
  7. Cc: icon-group
  8. Status: R
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. Your problem is because range is a string.  ?s returns a randomly selected
  12. character from the string s.  Since the ? operator applies to a variety
  13. of data types, you need to convert strings that look like integers to
  14. integers -- which your test shows to work.
  15.     
  16. Ralph E. Griswold            ralph@cs.arizona.edu
  17. Department of Computer Science          uunet!arizona!ralph
  18. The University of Arizona        602-621-6609 (voice)
  19. Tucson, AZ 85721            602-621-4246   (fax)
  20.